home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Tools 2
/
Amiga Tools 2.iso
/
dfue
/
avmnfax
/
rexx
/
playamigadirect.avm
< prev
next >
Wrap
Text File
|
1995-03-09
|
661b
|
31 lines
/*
*/
parse arg fileName .
address command
if exists(filename || 'i') then do
avmbusy = getclip('AVMBusy')
say 'avmbusy=' avmbusy
if avmbusy = "" then call setclip('AVMBusy', '1')
else call setclip('AVMBusy', avmbusy + 1)
'avm:dsound -2' filename || 'i'
/*
'avm:agmsplaysound' filename || 'i'
*/
avmbusy = getclip('AVMBusy')
call setclip('AVMBusy', avmbusy - 1)
end; else do
avmbusy = getclip('AVMBusy')
if avmbusy = "" then call setclip('AVMBusy', '1')
else call setclip('AVMBusy', avmbusy + 1)
'avm:adpcm2iff' fileName 'dummy' '-play' '-nosave'
avmbusy = getclip('AVMBusy')
call setclip('AVMBusy', avmbusy - 1)
end